<table class="table table-striped table-hover">
	<thead>
		<tr>
		
			<th> <g:message code="despesaFixa.ordem.label" default="Ordem" /> </th>
			
			<th> <g:message code="despesaFixa.dataDeVencimento.label" default="Vencimento" /></th>
		
			<th> <g:message code="despesaFixa.valorBase.label" default="Valor Base" /></th>
			
			<th> <g:message code="despesaFixa.ativa.label" default="Ativa" /></th>
			
			<th> <g:message code="despesaFixa.sazonalidade.label" default="Sazonalidade" /></th>
			
			<th> <g:message code="despesaFixa.situacao.label" default="Situação" /></th>
		</tr>
	</thead>
	<tbody>
	<g:each in="${despesaFixaInstanceList}" status="i" var="despesa">
		<tr >
		
			<td><g:link action="show" id="${despesa.id}">${fieldValue(bean: despesa, field: "ordem")}</g:link></td>
		
			<td><g:formatDate format="dd" date="${despesa?.dataDeVencimento}"/></td>
		
			<td><g:formatNumber number="${despesa.valorBase}" type="number"
                maxFractionDigits="2" minFractionDigits="2" /></td>
			
			<td><g:formatBoolean boolean="${despesa.ativa}" /></td>
			
			<td>${fieldValue(bean: despesa, field: "sazonalidade")}</td>
			
			<g:if test="${despesa.atrasada()}">
			    <td><span class="label label-important">
                    ${message(code: 'despesa.atrasada.label', default: 'Atrasada')}
                </span></td>
			</g:if><g:else>
			    <td><span class="label label-success">
                    ${message(code: 'despesa.em.dia.label', default: 'Em dia')}
                </span></td>
			</g:else>
			    
		</tr>
	</g:each>
	</tbody>
</table>
